#include "connectiondialog.h"
#include "ui_connectiondialog.h"

ConnectionDialog::ConnectionDialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::ConnectionDialog)
{
    ui->setupUi(this);
}

ConnectionDialog::~ConnectionDialog()
{
    delete ui;
}

quint16 ConnectionDialog::port() const
{
    return (quint16)this->ui->lineEdit_Port->text().toUShort();
}

QString ConnectionDialog::address() const
{
    return ui->lineEdit_Address->text();
}
